package mqs

import (
	"context"
	"github.com/zeromicro/go-zero/core/logx"
	"go-zero-demo/app/datacenter/mq/internal/mqs/material"
	"go-zero-demo/app/datacenter/mq/internal/svc"
)

type Server struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
}

func NewServer(ctx context.Context, svcCtx *svc.ServiceContext) *Server {
	return &Server{
		ctx:    ctx,
		svcCtx: svcCtx,
	}
}

func (s *Server) Run() {
	println("start!!")

	logx.Info("【素材】,相关拉取任务启动。")
	material.NewConsumes(s.ctx, s.svcCtx).Start()
}
